import request from '@/utils/request'

/**
 * 获取邮箱验证码
 * @param {*} email 
 */
export const getEmailCodeService = (email) => {
    return request.get('user/login/email/code', {
        params: {
            userEmail: email
        }
    })
}

/**
 * 用户登录或者注册
 * @param {*} query 
 * @returns 
 */
export const userLoginOrSignService = (query) => {
    return request.post('user/login', query)
}